//
//  ConditionBlock.cpp
//  ConstructGccfg2.0
//
//  Created by Bryce Holton on 12/4/12.
//  Copyright (c) 2012 Bryce Holton. All rights reserved.
//

#include "ConditionBlock.h"

ConditionBlock::ConditionBlock(int id) : BasicBlock(id)
{
    string codeLine = "CONDITION PLACE HOLDER";
    
    BasicBlock::SetLineOfCode(codeLine);
    convergencePoint = NULL;
}
ConditionBlock::~ConditionBlock()
{
    
}
BasicBlock *ConditionBlock::GetConvergencePoint()
{
    return this->convergencePoint;
}
void ConditionBlock::SetConvergencePoint(BasicBlock &convergencePoint)
{
    this->convergencePoint = &convergencePoint;
}
void ConditionBlock::Print()
{
    cout << "Condition Block" << endl;
    
    BasicBlock::Print();
    
    cout << "Convergence Point" << endl;
    
    GetConvergencePoint()->Print();
}
